<?php echo '<?xml version="1.0" encoding="utf-8" ?>'."\n";?>
<rss version='2.0'>
<channel>
<title><![CDATA[电影1010]]></title>
<description><![CDATA[电影1010提供最新最快电影资讯，全网最全最快的电驴资源下载！]]></description>
<link><?=config_item('base_url')?></link>
<language>zh-cn</language>
<docs>电影1010</docs>
<generator>Rss Powered By www.dy1010.com</generator>
<image>
<url>http://www.dy1010.com/images/logo.jpg</url>
</image>
<?php foreach ($data as $v): ?>
<item>
<title><![CDATA[<?=$v['china_name'];?>]]></title>
<link><?=movie_url($v['id']);?></link>
<author><?=replaces($v['director'].$v['starring']);?></author>
<pubDate><?=$v['update_time'];?></pubDate>
<description><![CDATA[<?=trim( preg_replace("/[&|&].*[;|;]/sU", '', strip_tags($v['drama']) ) );?>]]></description>
</item>
<?php endforeach;?>
</channel></rss>
<?php
function replaces($str)
{
	$str = strip_tags($str);
	$find = array('&nbsp;', '&', '&', ';', ';');
	$replace = array('', '', '', '', '');
	return str_replace($find, $replace, $str);
}
?>